package org.hanbo.code.repository.exception;

public class CodeSnippetExceptionBase  extends Exception
{
	private static final long serialVersionUID = -2893181494735075913L;
	
	private int code;
	private String type;
	private String desc;
	
	public CodeSnippetExceptionBase(int code, String type, String desc)
	{
		super(desc);
		
		this.code = code;
		this.type = type;
		this.desc = desc;
	}
	
	public int getErrorCode()
	{
		return this.code;
	}

	public String getErrorType()
	{
		return this.type;
	}

	public String getErrorDescription()
	{
		return this.desc;
	}
}
